home *** CD-ROM | disk | FTP | other *** search
- ;
- page 60,132
- title High Speed Console Clear Routine
- ;
- ; Author: Marty Prahl
- ; Date: 12-dec-84
- ; Rev: 1.0
- ;
- ; Copyright (c) 1984 by Marty Prahl
- ;
- ; Abstract:
- ;
- ; This routine provides for clearing windows on any of the
- ; IBM monitors in a consistent fashion. These routines are
- ; considerably faster than writing spaces to the window from
- ; a high level language.
- ;
- ; Calling Sequence:
- ;
- ; A>CLS
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Symbols
- ;
- ;---------------------------------------------------------------------------
- ;
- cseg segment para public 'CODE'
- assume cs:cseg, ds:cseg
-
- org 0100h
-
- include system.mac
-
- ibm_bios ; declare rom interrupts
- f_video_io ; declare video io functions
- dos_functions
-
- page
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Cls
- ;
- ;---------------------------------------------------------------------------
- ;
- cls:
- ;
- ; Rearrange parameters for rom bios call
- ;
- mov ch,0 ; erase the whole screen
- mov cl,0
- mov dh,24
- mov dl,79
- mov ah,scroll_up ; function we use to "erase"
- xor al,al ; "erase" entire window
- xor bh,bh ; no attribute for "erased" cells
- int video_io ; rom bios entry point
-
- mov al,0 ; no error on return
- mov ah,exit_proc ; dos terminate
- int dos ; dos interrupt
-
- cseg ends
- end cls